﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1>新增科室</h1>
    </header>
    <div class="aui-content aui-margin-b-15">
        @using (Html.BeginForm("NewClass", "Admin", FormMethod.Post))
        {

            <ul class="aui-list aui-form-list">
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            科室名称：
                        </div>
                        <div class="aui-list-item-input">
                            <input name="classname" type="text" placeholder="请输入" pattern="^[\u4e00-\u9fa5\a-zA-Z]{1,16}$" required oninvalid="setCustomValidity('请填写正确的科室名称');" oninput="setCustomValidity('');" />
                        </div>
                    </div>
                </li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            科室位置：
                        </div>
                        <div class="aui-list-item-input">
                            <input name="classplace" type="text" placeholder="请输入" pattern="^[\u4e00-\u9fa5\a-zA-Z]{1,32}$" required oninvalid="setCustomValidity('请填写正确的科室位置信息');" oninput="setCustomValidity('');" />
                        </div>
                    </div>
                </li>
            </ul>
            <br />
            <div class="aui-list-item-inner">
                <button type="submit" class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">提交新的科室</button>
            </div>
            <br />
            <div class="aui-list-item-inner">
                <a href="/Admin/Index"><p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回</div></p></a>
            </div>

        }
</body>
</html>

<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>

